package com.henry.base.concurrency.threadpool;

import java.sql.SQLOutput;

public class TestMyThreadPool {

    public static class MyJob implements Runnable {
        @Override
        public void run() {

            System.out.println("qewtrty");
        }
    }

    public static void main(String[] args) throws InterruptedException {
        ThreadPool pool = ThreadPool.getInstance();
        for (int i = 0; i < 10; i++) {
            pool.start(new MyJob());
        }

        Thread.sleep(1000);
        System.out.println("xxxxxxxxxxxxxx");
        pool.shutdown();
    }

}
